﻿namespace OperationPlugins.Models
{
    /// <summary>
    /// Represents a method return value.
    /// </summary>
    public sealed class MethodReturnValue
    {
        private bool _wasVoid = true;
        private object _value;

        /// <summary>
        /// The method return value.
        /// </summary>
        public object Value
        {
            set
            {
                _value = value;
                _wasVoid = false;
            }
            get { return _value; }
        }

        /// <summary>
        /// True if the method return value was Void.
        /// </summary>
        public bool WasVoid
        {
            set { _wasVoid = value; }
            get { return _wasVoid; }
        }
    }
}